package com.woniuxy.cloud.carl.store.service;

import com.woniuxy.cloud.carl.store.client.param.*;
import com.woniuxy.cloud.carl.store.client.result.StoreDto;
import com.woniuxy.cloud.carl.store.infra.model.Store;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.result.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lucas
 * @since 2023-07-19
 */
public interface StoreService extends IService<Store> {
    Result addStore(AddStoreParam param);
    Result modifyStore(ModifyStoreParam param);
    Result modifyStorePassword(ModifyStorePasswordParam param);
    Result modifyStoreState(ModifyStoreStateParam param);
    Result<List<StoreDto>> getStore(GetStoreParam param);
    Result<Long> storeLogin(StoreLoginParam param);

    Result modifyServiceInStore(AddServiceInStoreParam param);
    Result<List<Long>> getServiceByStoreId(Long storeId);
}
